package lab.bmp;

import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.FinderException;

/**
 *
 * @author Smike
 */
public interface NamedRecordBean<V extends AbstractPK<Integer>> extends EntityBean, NamedRecordLocal {
    
    public V ejbCreate(Integer id, String name) throws CreateException;
    public V ejbFindByPrimaryKey(V key) throws FinderException;
    public Collection ejbFindAll() throws FinderException;
    
}
